home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / ieee_remainder.z / ieee_remainder
Encoding:
Text File  |  2002-10-03  |  2.8 KB  |  78 lines

  1. IEEE_REMAINDER(3I)                                    Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      IIEEEEEE__RREEMMAAIINNDDEERR - Returns the remainder of _x divided by _y
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IIEEEEEE__RREEMMAAIINNDDEERR (([XX==]_x,, [YY==]_y))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS/mk, IRIX systems, CRAY T90 systems that support IEEE
  12.      floating-point arithmetic
  13.  
  14.      CF90, MIPSpro 7 Fortran 90
  15.  
  16. SSTTAANNDDAARRDDSS
  17.      Fortran extension
  18.  
  19.      IEEE Standard for Binary Floating-point Arithmetic
  20.  
  21. DDEESSCCRRIIPPTTIIOONN
  22.      The IIEEEEEE__RREEMMAAIINNDDEERR intrinsic function returns the remainder of the
  23.      operation _x divided by _y.  Note that this function does not have
  24.      precisely the same definition as either of the Fortran 90 intrinsic
  25.      functions MMOODD(3I) or MMOODDUULLOO(3I).
  26.  
  27.      The IIEEEEEE__RREEMMAAIINNDDEERR function accepts the following arguments:
  28.  
  29.      _x         Must be of type real.  It can be scalar or an array.
  30.  
  31.      _y         Must be of type real.  If _x is scalar, _y can be scalar or an
  32.                array.  If _x is an array, _y can be scalar or an array of the
  33.                same shape as _x.
  34.  
  35.      IIEEEEEE__RREEMMAAIINNDDEERR is an elemental function.  The name of this intrinsic
  36.      cannot be passed as an argument.
  37.  
  38. RREETTUURRNN VVAALLUUEESS
  39.      The same type and kind type parameter as the argument of the largest
  40.      precision and range.  For example, if _x is type RREEAALL((KKIINNDD==44)) and _y is
  41.      type RREEAALL((KKIINNDD==88)), the result is of type RREEAALL((KKIINNDD==88)).  If either _x or
  42.      _y is an array, the result is an array of the same shape as one of the
  43.      array arguments.
  44.  
  45.      The form of the result value is determined as follows:
  46.  
  47.      * If _x and _y are both scalar, the result is a scalar.
  48.  
  49.      * If _x is an array and _y is scalar, the result is an array in which
  50.        each element is the remainder of
  51.        _x  divided by _y.
  52.         _i
  53.  
  54.      * If _x is scalar and _y is an array, the result is an array in which
  55.        each element is the remainder of _x divided by
  56.        _y .
  57.         _i
  58.  
  59.      * If _x is an array and _y is an array, the result is an array in which
  60.        each element is the remainder of
  61.        _x  divided by _y .
  62.         _i             _i
  63.  
  64. EEXXAAMMPPLLEESS
  65.           REAL  x, y, r
  66.           ...                     ! Compute X and Y.
  67.           r = IEEE_REMAINDER(x, y)
  68.  
  69.           IF (r /= 0.0) THEN
  70.              ...
  71.           END IF
  72.  
  73. SSEEEE AALLSSOO
  74.      MMOODD(3I) MMOODDUULLOO(3I)
  75.  
  76.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  77.      man page.
  78.